﻿@using SAB.Domain.User
@{
    ViewBag.Title = "ProfileLibraryUser";
}
@{UserAccount usuario = (UserAccount)Session["usuario"];}
<div class="row">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li>@Html.ActionLink("Home", "Index", "Home")</li>
            <li>@Html.ActionLink("Usuario", "Index", "Home")</li>
            <li class="active">Perfil</li>
        </ol>
    </div>
</div>

<div class="col-md-10">
    @if (TempData["message"] != null)
    {
        <div class="alert alert-success" role="alert">@TempData["message"]</div>
    }
    @if (TempData["alert"] != null)
    {
        <div class="alert alert-danger" role="alert">@TempData["alert"]</div>
    }

</div>

<div class="row">
    <div class="col-md-10">
        
        <div class="form-group">
            <div class="row">
                <div class="col-md-8">
                    <a href="@Url.Content("~/Loan/LoanUserSearch")">Mis préstamos</a> |
                    <a href="@Url.Content("~/Reserves/Publications")">Mis Reservas</a>
                </div>
            </div>
        </div>

       

       

        <div class="form-group">

            <div class="form-group">
                <div class="row">
                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Código</label>
                        <input type="text" class="form-control" value=@usuario.Id.ToString() disabled="disabled">
                    </div>

                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Nombres</label>
                        <input type="text" class="form-control" value="@usuario.Name.ToString()" disabled="disabled">
                    </div>
                </div>
            </div>


            <div class="form-group">
                <div class="row">
                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Apellido Paterno</label>
                        <input type="text" class="form-control" value=@usuario.Lastname1.ToString() disabled="disabled">
                    </div>

                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Apellido Materno</label>
                        <input type="text" class="form-control" value=@usuario.Lastname2.ToString() disabled="disabled">
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="row">
                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Tipo Documento</label>
                        <input type="text" class="form-control" value=@usuario.Document.Name.ToString() disabled="disabled">
                    </div>

                    <div class="col-md-6">
                        <label for="exampleInputEmail1">DNI</label>
                        <input type="text" class="form-control" value=@usuario.NumeroDocumento.ToString() disabled="disabled">
                    </div>
                   
                    
                </div>
            </div>


            <div class="form-group">
                <div class="row">
                    
                    <div class="col-md-6">
                        <label for="exampleInputEmail1">Correo Electrónico</label>
                        <input type="email" class="form-control" value=@usuario.Correo.ToString() disabled="disabled">
                    </div>

                </div>
            </div>

          
            <a href="@Url.Content("~/Account/ChangePassword")">Cambiar Contraseña</a>
           
            
           
           
        </div>


        <div class="col-md-3">

        </div>

        <div class="col-md-3">
        
            @Html.ActionLink("Modificar", "Modify", "Account", new { @class = "btn btn-primary" })
        </div>

      
    </div>
</div>
